package com.ruoyi.app.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * APP动态视频信息业务对象 app_team_video
 *
 * @author heike
 * @date 2023-08-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppTeamVideoBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 动态ID
     */
    @NotNull(message = "动态ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long teamId;

    /**
     * 视频地址
     */
    private String url;

    /**
     * 视频封面/图片地址
     */
    @NotBlank(message = "视频封面/图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String image;

    /**
     * 视频/图片缩略地址
     */
    @NotBlank(message = "视频/图片缩略地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String smallImage;

    /**
     * 封面高度
     */
    @NotNull(message = "封面高度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer height;

    /**
     * 封面宽度
     */
    @NotNull(message = "封面宽度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer width;

    /**
     * 备注
     */
    private String remark;


}
